package com.yami.shop.mystery.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 盲盒商品扩展对象
 *
 * @author wxf
 * @date 2023/4/10 9:52
 */
@Data
@ToString
public class MysteryBoxExpandDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private long id;

    @Schema(description = "盒子编号")
    private long bid;

    @Schema(description = "商品编号")
    private long pid;

    @Schema(description = "币id")
    private String dawDenomId;;

    @Schema(description = "二级商品数量")
    private long dawNum;

    @Schema(description = "库存")
    private long stock;

    @Schema(description = "")
    @Length(min = 1, max = 26, message = "商品名称需要在1到26个字符之间")
    private String name;

    @Schema(description = "")
    private long serial;

    @Schema(description = "")
    private long profit;

    @Schema(description = "")
    private long cost;

    @Schema(description = "")
    private long attr;

    @Schema(description = "")
    private String img;

    @Schema(description = "")
    private String mainImg;

    @Schema(description = "")
    private Integer hits;

    @Schema(description = "")
    private long levelId;

    @Schema(description = "")
    private Date creatTime;

    @Schema(description = "")
    private double prob;

    @Schema(description = "")
    private String spuCode;

    @Schema(description = "")
    private String nftTokenId;

}
